package com.companion.companion.domain;

import java.util.Date;


/**
 * 用户与护工之间的会话对象 conversation
 * 
 * @author zly
 * @date 2025-05-06
 */
public class Conversation
{
    /** 会话ID */
    private Long conversationId;

    /** 用户ID */
    private Long userId;

    /** 护工ID */
    private Long caregiverId;

    /** 会话开始时间 */
    private Date startTime;


    public Conversation() {
    }

    public Conversation(Long conversationId, Long userId, Long caregiverId, Date startTime) {
        this.conversationId = conversationId;
        this.userId = userId;
        this.caregiverId = caregiverId;
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return conversationId
     */
    public Long getConversationId() {
        return conversationId;
    }

    /**
     * 设置
     * @param conversationId
     */
    public void setConversationId(Long conversationId) {
        this.conversationId = conversationId;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return caregiverId
     */
    public Long getCaregiverId() {
        return caregiverId;
    }

    /**
     * 设置
     * @param caregiverId
     */
    public void setCaregiverId(Long caregiverId) {
        this.caregiverId = caregiverId;
    }

    /**
     * 获取
     * @return startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String toString() {
        return "Conversation{conversationId = " + conversationId + ", userId = " + userId + ", caregiverId = " + caregiverId + ", startTime = " + startTime + "}";
    }
}
